'use strict';

new Vue({
  el: '#root',

  data: {
    tab: 0,
    selectedTrId: ''
  },

  methods: {
    onClickTr: function onClickTr(id) {
      if (id === this.selectedTrId) {
        this.selectedTrId = '';
      } else {
        this.selectedTrId = id;
      }
    }
  }
});